<?php
declare(strict_types=1);

namespace app\admin\controller;

use app\admin\logic\LoginLogic;

/**
 * 登录控制器
 */
class Login extends AdminBase
{
    /**
     * 登录
     * @return \think\response\Json
     */
    public function login()
    {
        return $this->returnData(LoginLogic::index($this->params));
    }

    /**
     * 测试
     * @return \think\response\Json
     */
    public function detail()
    {
        return $this->returnData(LoginLogic::detail($this->params));
    }

    /**
     * @return \think\response\Json
     */
    public function getRouter()
    {
        return $this->returnData(LoginLogic::getRouter($this->params));
    }

}
